<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>角色权限分配</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
    <div class="min-h-screen">
        <header class="bg-white shadow">
            <div class="max-w-7xl mx-auto py-6 px-4">
                <h1 class="text-2xl font-bold text-gray-900">角色权限分配</h1>
            </div>
        </header>

        <main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
            <!-- 角色信息 -->
            <div class="bg-white shadow rounded-lg p-6 mb-6">
                <div class="grid grid-cols-3 gap-6">
                    <div>
                        <label class="block text-sm font-medium text-gray-700">角色名称</label>
                        <div class="mt-1 text-sm text-gray-900">运营管理员</div>
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-gray-700">角色标识</label>
                        <div class="mt-1 text-sm text-gray-900">operation_admin</div>
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-gray-700">角色描述</label>
                        <div class="mt-1 text-sm text-gray-900">负责日常运营管理</div>
                    </div>
                </div>
            </div>

            <!-- 权限分配 -->
            <div class="bg-white shadow rounded-lg overflow-hidden">
                <div class="p-6">
                    <div class="flex justify-between items-center mb-6">
                        <h2 class="text-lg font-medium text-gray-900">权限列表</h2>
                        <div class="flex items-center space-x-4">
                            <button class="text-blue-600 hover:text-blue-900">全选</button>
                            <button class="text-blue-600 hover:text-blue-900">取消全选</button>
                        </div>
                    </div>

                    <!-- 订单管理权限 -->
                    <div class="mb-8">
                        <div class="flex items-center mb-4">
                            <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                            <span class="ml-3 text-base font-medium text-gray-900">订单管理</span>
                        </div>
                        <div class="ml-8 grid grid-cols-3 gap-4">
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">查看订单</span>
                            </label>
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">处理订单</span>
                            </label>
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">导出订单</span>
                            </label>
                        </div>
                    </div>

                    <!-- 分销管理权限 -->
                    <div class="mb-8">
                        <div class="flex items-center mb-4">
                            <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                            <span class="ml-3 text-base font-medium text-gray-900">分销管理</span>
                        </div>
                        <div class="ml-8 grid grid-cols-3 gap-4">
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">查看分销员</span>
                            </label>
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">审核分销员</span>
                            </label>
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">佣金设置</span>
                            </label>
                        </div>
                    </div>

                    <!-- 核销管理权限 -->
                    <div class="mb-8">
                        <div class="flex items-center mb-4">
                            <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                            <span class="ml-3 text-base font-medium text-gray-900">核销管理</span>
                        </div>
                        <div class="ml-8 grid grid-cols-3 gap-4">
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">查看成交员</span>
                            </label>
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">审核成交员</span>
                            </label>
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">核销记录</span>
                            </label>
                        </div>
                    </div>

                    <!-- 系统管理权限 -->
                    <div class="mb-8">
                        <div class="flex items-center mb-4">
                            <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                            <span class="ml-3 text-base font-medium text-gray-900">系统管理</span>
                        </div>
                        <div class="ml-8 grid grid-cols-3 gap-4">
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">角色管理</span>
                            </label>
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">权限管理</span>
                            </label>
                            <label class="flex items-center">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 rounded border-gray-300">
                                <span class="ml-3 text-sm text-gray-700">操作日志</span>
                            </label>
                        </div>
                    </div>
                </div>

                <!-- 操作按钮 -->
                <div class="px-6 py-4 bg-gray-50 border-t border-gray-200 flex justify-end space-x-4">
                    <button class="px-4 py-2 border rounded-md text-gray-700 hover:bg-gray-50">取消</button>
                    <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">保存</button>
                </div>
            </div>
        </main>
    </div>
</body>
</html>